package com.lzx.adx.report.enums;


public enum KsJgEnum {
    activate("activate", "1"),
    day1retention("retain_1day", "7"),
    ;

    private String productCode;

    private String ksCode;


    KsJgEnum(String productCode, String ksCode) {
        this.productCode = productCode;
        this.ksCode = ksCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public String getKsCode() {
        return ksCode;
    }


    public static String getKsCode(String productCode) {
        KsJgEnum[] xiaoMiJgEnums = KsJgEnum.values();
        for (KsJgEnum xiaoMiJgEnum : xiaoMiJgEnums) {
            if (xiaoMiJgEnum.getProductCode().equals(productCode)) {
                return xiaoMiJgEnum.getKsCode();
            }
        }
        return null;
    }

}
